import java.awt.Color;

import info.gridworld.actor.Flower;


public class myFlower extends Flower{
	
	public myFlower(Color c)
	{
		this.setColor(c);
	}
	
	public void act()
	{
		super.act();
		Color c = this.getColor();
		if(c.getRed() == 0 && c.getGreen() == 0 && c.getBlue() == 0)
		{
			this.removeSelfFromGrid();
		}
	}
}
